package com.woniuxy.service;

import java.util.List;

import com.mysql.cj.x.protobuf.MysqlxCrud.Order;
import com.woniuxy.entity.ChooseCourse;
import com.woniuxy.entity.CoachInfo;
import com.woniuxy.entity.Course;
import com.woniuxy.entity.GymCoach;
import com.woniuxy.entity.Message;
import com.woniuxy.entity.Orders;
import com.woniuxy.entity.PageBean;
import com.woniuxy.entity.Style;
import com.woniuxy.entity.User;

/**
 * 教练service类
 * 
 * @author lishuwei
 *
 */
public interface CoachService {
//查询指定位置附近的学员
	public List<User> getNearbyUsers(User user, double distince, String role);

//根据id查询学员
	public User getUserById(long id);
	
//给学员留信息
	public int sendMessage(Message message) ;

//教练信息
	public CoachInfo getCoachInfoById(long id);

	public int addOrder(Orders order);

	public int addSgin(GymCoach gymCoach, String info,String role);

	public PageBean<User> getFriendsByPage(long id, Integer page);
	
	public int getGymCoachByCIdAndGid(long cid,long gid);

	public void sendOrderMessage(Message message);

	public PageBean<GymCoach> getSginsByPage(long id, int page);

	public void updateSignStatus(GymCoach gymCoach,String Status,String role);

	public void updateUser(User user);

	public void updateCoach(User user);

	public PageBean<User> getSginCoachesByPage(Integer id, Integer page);

	public Course getCourseById(long id);

	public ChooseCourse getChooseCourseById(long chooseId);



		
	


}
